import Vue from 'vue'
//按需引入element-ui组件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//路由
import router from '@/router/router'
import App from './App.vue'
import echarts from "echarts";
//cokkies
import VueCookies from "vue-cookies";
/*引入axios*/
// import axios from 'axios'
Vue.prototype.$echarts = echarts;


Vue.config.productionTip = false
//使用element-ui组件
Vue.use(ElementUI);
//cookies
Vue.use(VueCookies);

// axios.interceptors.request.use(config => {
//   config.headers.Authorization = window.sessionStorage.getItem('token')
//   // console.log(window.sessionStorage.getItem('token'))
//   return config
// });
// Vue.prototype.$http = axios


new Vue({
  el: '#app',
  render: h => h(App),
  router
}).$mount('#app')

